


//
//  U9CustomeError.m
//  iMobile
//
//  Created by baken on 2016/12/26.
//  Copyright © 2016年 MyApp. All rights reserved.
//

#import "U9CustomeError.h"

@implementation U9CustomeError

+ (NSError *)createError:(NSString *)str{
    NSDictionary *userInfo1 = [NSDictionary dictionaryWithObjectsAndKeys:str, NSLocalizedDescriptionKey, str, NSLocalizedFailureReasonErrorKey, str,NSLocalizedRecoverySuggestionErrorKey,nil];
    
    NSError *error = [[NSError alloc] initWithDomain:NSCocoaErrorDomain code:999999 userInfo:userInfo1];
    return error;
}

@end
